package ClassHomeworkTest;
//妻子类
public class Wife {
    private String id;
    private String name;
    private String date;
    private Husband husband;

    public Wife() {
    }

    public Wife(String id, String name, String date, Husband husband) {
        this.id = id;
        this.name = name;
        this.date = date;
        this.husband = husband;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Husband getHusband() {
        return husband;
    }

    public void setHusband(Husband husband) {
        this.husband = husband;
    }

    @Override
    public String toString() {
        return "["+this.id+" "+this.name+" "+this.date+" "+this.husband+"]";
    }
}
